package com.lwei.tallybook.base.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
import com.lwei.tallybook.base.domain.base.BaseDomain;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * 账单
 * @author sks.lwei
 */
@Getter
@Setter
@NoArgsConstructor
@TableName("client_account_book_bill")
public class AccountBookBill extends BaseDomain<AccountBookBill> {

    /**
     * 账单类型
     */
    @TableField("bill_type")
    private String billType;
    /**
     * 账单名称
     */
    @TableField("bill_name")
    private String billName;
    /**
     * 账单总金额
     */
    @TableField("bill_price")
    private Double billPrice;
    /**
     * 账单内容
     */
    @TableField("bill_content")
    private Double billContent;
    /**
     * 是否结算 默认为否
     */
    @TableField("close")
    private Boolean close;

    public AccountBookBill(String billType, Double billPrice) {
        super.setUuid("abb_"+ IdWorker.getIdStr());
        this.billType = billType;
        this.billPrice = billPrice;
    }
}
